<?php

require_once '../../../serverResources/includes/db/ConnDBUser.php';
require_once '../../../serverResources/includes/classes/ImpQuest.php';
require_once '../../../serverResources/includes/classes/EdImpQuest.php';
include_once '../others/refreshSessionTime.php';

if(isset($_POST['groupID']) && isset($_POST['projectID'])){


	$improvedQuestions=new ImpQuest('', '', '');

	$array=$improvedQuestions->preparedArrayForAdmin($_POST['groupID'], $_POST['projectID']);

	unset($improvedQuestions);

	echo json_encode($array);

}else{
	echo 0; //falha no post
}